

//登陆
function logining(){
	var form = $('#loginform')[0];
	var username = form.username.value;
	var password = form.password.value;
	var verifycode = form.verifycode.value;
	$.post("ajax/notlogin.php",{
		eve: 1
		,uname: username
		,upwd: password
		,ucode: verifycode
	},function(data, textStatus, reXML) {
		if(data == 2){
			$('#loginmsg').text('验证码不正确!');
		}else if(data == 0){
			$('#loginmsg').text('帐号密码不正确!');
		}else if(data == 1){
			$('#loginmsg').text('登陆成功!');
			setTimeout(function(){
				//window.location.href = 'index.php';
				//window.location.href = document.referrer;
				window.location.href = 'index.php';
			},1000);
		}
		
	},"text");
}
